home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3942 / text0000.txt < prev   
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  34 lines

  1. Benjamin Kenobi wrote:
  2. > I'm just wondering, is there any good reason AT can't write a program which
  3. > will tranlsate binary executables from 680X0 -> PPC, doing optimizations along
  4. > the way?  That way we could translate most of our old software and it would
  5. > run efficiently.  Why didn't Apple do this with the PowerMacs?
  6.  
  7. A translator could be possible but I seriously doubt that you could do much
  8. optimizations.
  9.  
  10. See:
  11.  
  12. MOVE    (A0),A1
  13. ADD     d2,d3
  14. MOVE    d0,(A1)
  15. SUB     d4,d5
  16.  
  17. Just to show how you could spread memoryaccesses to prevent the
  18. memory to be the bottleneck.
  19.  
  20. Now figure that there is another part of the program that jumps to
  21. the ADD and another part that jumps to the SUB.
  22. If the PPC optimization of this "routine" would be different then you
  23. had to be sure that any jump in the program must come to the right place.
  24. Maybe possible.
  25.  
  26. Sorry, now I'm gibbering again...
  27.  
  28. -- 
  29.  / Jonas Elfstrom       (5+ rows .sigs sux)       jonas@plea.se  \
  30. < Amiga, Linux, ISP, C, 680x0/6502.  Guinness.  Suede, Oasis, SP. >
  31.  \ We are here to PLEAse you.  +46 19 322010   http://www.plea.se/
  32.